package jy.game.components.wuxue.box;

import com.randy.fundation.Logger;

import jy.game.components.wuxue.JyBuff;
import jy.game.components.wuxue.JyTrigger;
import jy.game.components.wuxue.SkillCoverType;
import jy.game.components.wuxue.SkillType0;
import jy.game.components.wuxue.pojo.JyAoyi;
import jy.game.tools.JyColor;

public class AoyiInstance extends JySkillBox {

    private JySkillBox _parent;
    private JyAoyi     _aoyi;


    public AoyiInstance(JySkillBox parent, JyAoyi aoyi) {
        this._parent = parent;
        this._aoyi = aoyi;
        owner = this._parent.owner;
        this.screenEffect = this._aoyi.animation;
    }

    // (get) Token: 0x06000544 RID: 1348 RVA: 0x00004D8B File Offset: 0x00002F8B
    public /*override*/ String Name() {
        {
            return this._aoyi.name;
        }
    }

    // (get) Token: 0x06000545 RID: 1349 RVA: 0x00004D98 File Offset: 0x00002F98
    public /*override*/ String Icon() {
        {
            return this._parent.Icon;
        }
    }

    // (get) Token: 0x06000546 RID: 1350 RVA: 0x00004AC1 File Offset: 0x00002CC1
    public /*override*/ JyColor Color() {
        {
            return JyColor.magenta;
        }
    }

    // (get) Token: 0x06000547 RID: 1351 RVA: 0x00003D5C File Offset: 0x00001F5C
    public /*override*/ int Cd() {
        {
            return 0;
        }
    }

    // (get) Token: 0x06000548 RID: 1352 RVA: 0x00004DA5 File Offset: 0x00002FA5
    public /*override*/ int Type() {
        {
            return this._parent.Type;
        }
    }

    // (get) Token: 0x06000549 RID: 1353 RVA: 0x00004DB2 File Offset: 0x00002FB2
    public /*override*/ int CostMp() {
        {
            return this._parent.costMp;
        }
    }

    // (get) Token: 0x0600054A RID: 1354 RVA: 0x00003D5C File Offset: 0x00001F5C
    public /*override*/ int CostBall() {
        {
            return 0;
        }
    }

    // (get) Token: 0x0600054B RID: 1355 RVA: 0x00004DBF File Offset: 0x00002FBF
    public /*override*/ int CastSize() {
        {
            return this._parent.castSize;
        }
    }

    // (get) Token: 0x0600054C RID: 1356 RVA: 0x00004DCC File Offset: 0x00002FCC
    public /*override*/ int Size() {
        {
            return this._parent.size;
        }
    }

    // (get) Token: 0x0600054D RID: 1357 RVA: 0x00004DD9 File Offset: 0x00002FD9
    public /*override*/ SkillCoverType CoverType() {
        {
            return this._parent.coverType;
        }
    }

    // (get) Token: 0x0600054E RID: 1358 RVA: 0x00004DE6 File Offset: 0x00002FE6
    public /*override*/ String Animation() {
        {
            return this._parent.animation;
        }
    }

    // (get) Token: 0x0600054F RID: 1359 RVA: 0x00004AC8 File Offset: 0x00002CC8
    public /*override*/ SkillType0 SkillType() {
        {
            return SkillType0.Aoyi;
        }
    }

    // (get) Token: 0x06000550 RID: 1360 RVA: 0x00004DF3 File Offset: 0x00002FF3
    @Override public /*override*/ int level() {
        {
            return this._parent.level();
        }
    }

    // (get) Token: 0x06000551 RID: 1361 RVA: 0x00004E00 File Offset: 0x00003000
    @Override public /*override*/ int maxLevel() {
        {
            return this._parent.maxLevel();
        }
    }

    // (get) Token: 0x06000552 RID: 1362 RVA: 0x00004E0D File Offset: 0x0000300D
    @Override public /*override*/ boolean tiaohe() {
        {
            return this._parent.tiaohe();
        }
    }

    // (get) Token: 0x06000553 RID: 1363 RVA: 0x000331F0 File Offset: 0x000313F0
    @Override public /*override*/ double power() {
        {
            int       num     = 0;
            JyTrigger trigger = null;
            try {
                if (owner != null) {
                    for (JyTrigger trigger2 : owner.GetTriggers("powerup_aoyi")) {
                        if (trigger2.Argvs()[0] == this.Name) {
                            trigger = trigger2;
                            num += Integer.parseInt(trigger2.Argvs()[1]);
                        }
                    }
                }
            } catch (Exception e) {
                Logger.e(
                    "奥义数据错误:" +
                        this.Name +
                        "," +
                        trigger.Argvs()
                );
            }
            return (double) ((this._parent.power() + this._aoyi.addPower) * (1.0 + (double) num / 100.0));
        }

    }

    // (get) Token: 0x06000554 RID: 1364 RVA: 0x00004E1A File Offset: 0x0000301A
    @Override public /*override*/ double suit() {
        {
            return this._parent.suit();
        }
    }

    // (get) Token: 0x06000555 RID: 1365 RVA: 0x00004E27 File Offset: 0x00003027
    // [XmlIgnore]
    @Override public /*override*/ Iterable<JyBuff> getBuffs() {
        {
            return this._aoyi.getBuffs();
        }
    }

    // (get) Token: 0x06000556 RID: 1366 RVA: 0x00004E34 File Offset: 0x00003034
    @Override public /*override*/ String audio() {

        return this._parent.audio();

    }

    @Override public /*override*/ boolean tryAddExp(int exp, int maxLevel) {
        return this._parent.tryAddExp(exp, maxLevel);
    }

    @Override protected /*override*/ String getDescriptionInRichtext(boolean forAchievement) {
        return "";
    }

}